import {defineStore} from "pinia";
import {IActions, IState} from "@/store/globalModule/types";

const useGlobalStore = defineStore<any, IState, any, IActions>("globalModule", {
    state() {
        return {
            isShow: false,
            isShowPersonalCenter: false
        }
    },
    actions: {
        setIsShowAction(flag) {
            this.isShow = flag
        },
        setPersonalCenterAction(flag) {
            this.isShowPersonalCenter = flag
        },
    }
})
export default useGlobalStore
